/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.crm.domain.entities;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


/**
 *
 * @author User1
 */
public class TestApp {

    private EntityManagerFactory emf = Persistence.createEntityManagerFactory("crm-persistence-unit");
    private EntityManager em;

    /*
    public List<Lead> find() {
        em = emf.createEntityManager();
        em.getTransaction().begin();
        String query =	" SELECT l FROM LEAD l ";
        return em.createQuery(query, Lead.class).getResultList();
    }
	*/
    public static void main(String args[]) {
    	/*
        TestApp ta = new TestApp();
        List<Lead> leads = this.find();
        for(Lead lead : leads){
        	System.out.println(lead);
        }*/
    	System.out.println("SHEKHAR");
    }
}
